home *** CD-ROM | disk | FTP | other *** search
/ Sun Solutions 1997 April to September / Sun Solutions CD - APR '97 - SEP '97 (704-3778-12 Rev. H)(Sun Microsystems, Inc.)(1997).iso / products / Legato / _install / legatoinstall.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1997-02-10  |  1KB  |  52 lines

  1. #!/bin/sh
  2. #-----------------------------------------------------------------------------
  3. # useful information to have before installing MAE 3.0 Update 1
  4. #-----------------------------------------------------------------------------
  5.  
  6.  
  7.  
  8. #
  9. # Check if root
  10. #
  11. echo "Welcome to the Legato NetWork for Solaris Evaluation Installation."
  12. echo ""
  13. echo ""
  14. if [ "$USER" = "root" ]; then
  15.  while true
  16.  do
  17.   echo "Would you like to install NetWorker, or Quit ? [y/q] \c"
  18.  
  19.   read ans
  20.   case "$ans" in
  21.         y|Y|yes|YES) exec $COMPANY_DIR/forms/INSTALL.SH;exit 0
  22.             ;;
  23.         N|Q|n|q|No|quit|NO|QUIT|Quit) echo;echo;echo "   cancelling installation of NetWorker"; sleep 5 ; exit 1
  24.             ;;
  25.         * ) echo ; echo ; echo "Please answer with y if you wish to install,"
  26.                    echo "   or q if you wish to quit (stop the install)"
  27.             ;;
  28.   esac
  29.  done
  30.  
  31. else
  32.  while true
  33.  do
  34.   echo "You need to be super user to install this software. \c"
  35.   echo ""
  36.   echo "Would you like to install Networker, or Quit ? [y/q] \c"
  37.  
  38.   read ans
  39.   case "$ans" in
  40.         y|Y|yes|YES) echo "";echo "Enter super user \c";su root -c '$COMPANY_DIR/forms/INSTALL.SH';exit 0
  41.             ;;
  42.         N|Q|n|q|No|quit|NO|QUIT|Quit) echo;echo;echo "   cancelling installation of NetWorker"; sleep 5 ; exit 1
  43.             ;;
  44.         * ) echo ; echo ; echo "Please answer with y if you wish to install,"
  45.                    echo "   or q if you wish to quit (stop the install)"
  46.             ;;
  47.   esac
  48.  done
  49.  
  50.  
  51. fi
  52.